<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:jwork="http://irian.at/jsfatwork"
      xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/templates/template.xhtml">
    <ui:define name="heading">
        <h:outputText value="Order - Details" />
    </ui:define>
    <ui:define name="content">
        <h:panelGrid columns="2">
            <h:outputText value="Order Type" />
            <h:outputText value="#{orderBean.order.orderType}" />

            <h:outputText value="Stock Symbol" />
            <h:outputText value="#{orderBean.order.stock.symbol}" />

            <h:outputLabel value="Quantity" for="quantity" />
            <h:inputText id="quantity" value="#{orderBean.order.quantity}" />

            <h:outputText value="Quote" />
            <h:outputText value="#{orderBean.quote.amount}" />

            <h:panelGroup />
            <h:commandButton value="Send Order" action="#{orderBean.sendOrder}" />
        </h:panelGrid>
    </ui:define>
</ui:composition>

</html>